import * as crypto from "crypto"
export function strToMd5(str: string): string {
    const md5 = crypto.createHash("md5");
    return md5.update(str).digest("hex");
}
export const YYYY_MM_DD_HH_MM_SS = "YYYY-MM-DD HH:mm:ss"
export const YYYY_MM_DD = "YYYY-MM-DD"
export function isArray(arr: any) {
    return arr instanceof Array && Object.prototype.toString.call(arr) === "[object Array]"
}
export function isObject(obj: any) {
    return obj instanceof Object && Object.prototype.toString.call(obj) === "[object Object]"
}
